﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace EmptoolWebApp.Models
{
    public class EmployeeViewModel : BaseViewModel
    {

        public EmployeeViewModel() { }

        public EmployeeViewModel(Entities.EmployeeEntity e) : base(e)
        {
            this.CompanyName = e.CompanyName;
        }

        [Display(Name = "Company PK")]
        public string CompanyPK { get; set; }

        [Required]
        [Display(Name = "Company Name")]
        public string CompanyName { get; set; }

        [Required]
        [Display(Name = "First Name")]
        public string FirstName { get; set; }

        [Required]
        [Display(Name = "Last Name")]
        public string LastName { get; set; }

        [Display(Name = "Department")]
        public string Department { get; set; }

        [Display(Name = "Job Title")]
        public string JobTitle { get; set; }
    }

    public class EmployeeListViewModel
    {
        [Display(Name = "Company PK")]
        public string CompanyPK { get; set; }

        [Display(Name = "Company Name")]
        public string CompanyName { get; set; }

        public List<EmptoolWebApp.Entities.EmployeeEntity> EmployeeEntityList { get; set; }
    }
    
}